<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>天猫tmall.com--理想生活上天猫</title>
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/cart.css">
    <link rel="stylesheet" href="/css/modules/header.css">
    <link rel="stylesheet" href="/libs/iconfont/iconfont.css">
    <link rel="shortcut icon" href="//img.alicdn.com/tfs/TB1XlF3RpXXXXc6XXXXXXXXXXXX-16-16.png">
    <link rel="stylesheet" href="/libs/bootstrap/css/bootstrap.min.css">
</head>
<body>
    <!-- header -->
    <header></header>
    <!-- search -->
    <div class="search">
        <div class="search-con">
            <div class="left">
                <img src="/images/login-logo.png" alt="">
                <h2>购物车</h2>
            </div>
            <div class="right">
                <select>
                    <option value="宝贝">宝贝</option>
                    <option value="店铺">店铺</option>
                </select>
                <input type="text" placeholder="在此输入">
                <button class="searchBtn">搜索</button>
            </div>
        </div>
    </div>
    <!-- allGoods -->
    <div class="allGoods-con">
        <div class="left">
            <div>全部商品</div>
        </div>
    </div>
    <!-- listHeader -->
    <div class="listHeader-con" id="listHeader">
        <div class="header1">
            <input type="checkbox" id="all-check" class="all-check">
            <p>全选</p>
        </div>
        <div class="header2">商品信息</div>
        <div class="header3">单价</div>
        <div class="header4">数量</div>
        <div class="header5">金额</div>
        <div class="header6">操作</div>
    </div>
    <!-- listBody -->
    <div class="listBody" id="listBody"></div>
    <script type="text/html" id="listBodyTemplate">
        {{each cart shop}}
        <div class="goods{{ shop.check? ' active' : ''}}" data-id="{{shop.id}}">
            <input type="checkbox" class="select" {{ shop.check ? 'checked' : '' }}>
            <a href="/html/detail.html?id={{shop.id}}"><img src="{{shop.photo[0].url}}" alt=""></a>
            <h2><a href="/html/detail.html?id={{shop.id}}">{{shop.title.slice(0, 28)}}..</a></h2>
            <h3>颜色分类: {{shop.title.slice(0,6)}}..</h3>
            <h4>￥<i>{{shop.price}}</i></h4>
            <div class="num">
                <button class="subBtn" type="button" {{ shop.count == 1 ? 'disabled' : ''}}>-</button>
                <input type="text" value="{{shop.count}}" class="countInput">
                <button class="addBtn" type="button">+</button>
            </div>
            <h5>￥<em class="singleTotalPrice">{{ (shop.count*shop.price).toFixed(2) }}</em></h5>
            <div class="del singleDel">删除</div>
        </div>
        {{/each}}
    </script>
    <!-- cart-empty -->
    <div id="cart-empty" class="cart-empty">
        <div class="em1">您的购物车还是空的，赶紧行动吧！</div>
        <a href="/index.html">好，我这就去首页</a>
    </div>
    <div class="fixed" id="fixed">
        <div class="left">
            <div class="allSelect">
                <input type="checkbox" id="all-check2" class="all-check">
                <p>全选</p>
            </div>
            <div class="del" id="batchDel">删除</div>
            <div class="clear">清除失效宝贝</div>
            <div class="shoucang">移入收藏夹</div>
            <div class="share">分享</div>
        </div>
        <div class="right">
            <div class="selectNum">已选商品 <i id="payCount">1</i> 件</div>
            <div class="priceNum">合计（不含运费和进口税）：&nbsp<i>￥</i><b id="Paymoney">959.00</b></div></div>
            <button class="goBuy" id="goBuy">结算</button>
        </div>
    </div>
    <!-- footer -->
    <footer></footer>
    <!-- alipay -->
    <div class="alipay" id="alipay"><img src="/images/alipay.png" alt=""></div>
</body>
<script src="/libs/require/require.min.js" data-main="/js/cart"></script>
</html>